package avicit.bdp.dds.service.queue;


public interface TaskPriorityQueue {

    /**
     * put task info
     *
     * @param taskInfo taskInfo
     * @throws Exception
     */
    void put(String taskInfo) throws Exception;

    /**
     * take taskInfo
     * @return taskInfo
     * @throws Exception
     */
    String take()throws Exception;

    /**
     * size
     *
     * @return size
     * @throws Exception
     */
    int size() throws Exception;
}